Automated sync from private repo (2026-07-14)#818
Merged
foundry-samples-repo-sync[bot] merged 1 commit intoJul 14, 2026
Conversation
) * feat: auto-load .env in all C# hosted-agent samples for consistency Add DotNetEnv (Env.TraversePath().Load()) to the 11 C# hosted-agent samples that did not already load a local .env file, so every C# sample picks up .env the same way. Adds the DotNetEnv 3.1.1 PackageReference to each project's existing package ItemGroup. * fix: readme * fix: use Env.NoClobber() so runtime env vars take precedence over .env Change all C# hosted-agent samples to Env.NoClobber().TraversePath().Load() so environment variables provided by azd, the hosted container, or CI are not overwritten by a local .env file. Applied to all 28 samples (the 11 added in this PR plus the 17 that already loaded .env) for consistency.
foundry-samples-repo-sync
Bot
deleted the
sync/private-to-public-20260714-064925
branch
July 14, 2026 06:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated sync from private repo.
Synced commits: 1
Authors: Dooriya Li
Validation gate: mode=
none; tracked=47; blocked=12.Rollback point:
19de461b10a21be362deb42ade91ba91dcf9756b— to revert, force-push this SHA tomainand clear the sync-marks cache.Triggered by:
scheduleRun: https://github.com/microsoft-foundry/foundry-samples-pr/actions/runs/29312508088